import unittest
from q7 import reverse

class TestQ7(unittest.TestCase):
    def test_reverse1(self):
        x = 123
        result = reverse(self,x)
        self.assertEqual(result,321)

    def test_reverse2(self):
        x = -123
        result = reverse(self,x)
        self.assertEqual(result,-321)

    def test_reverse3(self):
        x = 120
        result = reverse(self,x)
        self.assertEqual(result,21)

    def test_reverse4(self):
        x = 0
        result = reverse(self,x)
        self.assertEqual(result,0)

    def test_reverse5(self):
        x = 1534236469
        result = reverse(self,x)
        self.assertEqual(result,0)

if __name__ == '__main__':
    unittest.main()